﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Skynet.Framework.Common;
using Skynet.LoggingService;
using System.IO;
using System.Windows.Forms;

namespace AutoRegisterManager.Common
{
    /// <summary>
    /// 发卡
    /// 作者：李新华
    /// DATE：2013.1.10
    /// </summary>
    public class PutCardUniversal
    {


        public void OutCard(int sqadd, int blockAddr, decimal sumChargeMoney)
        {
            MyMsg.MsgInfo("发卡成功！");
        }

        

        /// <summary>
        /// 检查此卡号是否已经发过卡
        /// </summary>
        /// <param name="cardID"></param>
        /// <returns></returns>
        public string check(string cardID)
        {
            //CardAuthorizationFacade eCardAuthorizationFacade = new CardAuthorizationFacade();
            //DataSet ds = eCardAuthorizationFacade.SelectPatientAndCardInfoByCardID(cardID);//this.tbxCardID.Text.Trim()
            //if (ds.Tables[0].Rows.Count > 0)
            //{
            //    return "该病人已发卡，不能重复发卡！";

            //}
            return string.Empty;
        }
        /// <summary>
        /// 得到卡类型
        /// </summary>
        /// <returns></returns>
        public DataRow cardType()
        {
            //CardTypesFacade cardTypesFacade = new CardTypesFacade();
            //DataSet dscardTypes = cardTypesFacade.SelectAllItems();
            //if (dscardTypes==null ||dscardTypes.Tables[0].Rows.Count == 0)
            //{
            //    MyMsg.MsgInfo("没有得到卡类型数据，请维护");
            //    return null;
            //}
            //return dscardTypes.Tables[0].Select("TYPE_NAME like '%一卡通%'")[0];//需要改动
            return null;

        }
    }
}
